package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.SysUserRole;
import com.zuipin.mapper.SysUserRoleMapper;
import com.zuipin.service.ISysUserRoleService;
import com.zuipin.util.Pagination;

/**
 * 用户角色映射服务实现
 * 
 * @ClassName: SysUserRoleSer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年09月147日 09:21:09
 */
@Service
public class SysUserRoleServiceImpl implements ISysUserRoleService {
	
	@Resource
	private SysUserRoleMapper sysUserRoleMapper;
	
	@Override
	public SysUserRole findById( Long id) {
		return sysUserRoleMapper.findById(id);
	}
	
	@Override
	public void insert(SysUserRole sysUserRole) {
		sysUserRoleMapper.insert(sysUserRole);
	}
	
	@Override
	public void update(SysUserRole sysUserRole) {
		sysUserRoleMapper.update(sysUserRole);
	}
	
	@Override
	public void delete( Long id) {
		sysUserRoleMapper.delete(id);
		
	}
	
	@Override
	public List<SysUserRole> seachSysUserRole(SysUserRole sysUserRole, Pagination page) {
		return sysUserRoleMapper.seachSysUserRole(sysUserRole, page);
	}
	
}
